package com.warren.controller.py;

import com.warren.service.py.DownJsonService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version V1.0
 * @Description:
 * @author: warren
 * @date: 2022/7/27$ 13:33$
 */
@RestController
@RequestMapping("/downJson")
@Slf4j
@Api("下载json文件")
public class DownJsonController {
    @Autowired
    DownJsonService downJsonService;

    @GetMapping("/downWechatUser")
    @ApiOperation("BBR正式导客关系最终")
    public void downWechatUser() {
        downJsonService.downWechatUser();
    }

    @ApiOperation("BBR正式合并订单数据最终")
    @GetMapping("/downOrderDetail")
    public void downOrderDetail() {
        downJsonService.downOrderDetail();
    }
}
